export default {
  login: config => {
    return {
      code: 200,
      data: {
        token: 'admin'
      }
    }
  },
  getUserInfo: config => {
    return {
      code: 200,
      data: {
        avatar: 'https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif',
        name: 'admin',
        roles: ['admin']
      }
    }
  },
  logout: () => 'success'
}
